import { BaseService, Service } from '@/core';

@Service('app/scoreMoney')
export default class extends BaseService {
	//   积分兑换
	exchange(params) {
		return this.request({
			url: '/exchange',
			method: 'POST',
			data: {
				...params
			},
			isLoading: true
		});
	}

	// 兑换记录
	changeList(params) {
		return this.request({
			url: '/changeList',
			params: {
				...params
			},
			isLoading: true
		});
	}

	// 兑换红包统计
	count(params) {
		return this.request({
			url: '/count',
			params,
			isLoading: true
		});
	}
}
